<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Contact extends BaseModel
{
    /**
     *  联系人所在的企业客户信息
     */
    public function custom(){
        return $this->belongsTo(Custom::class);
    }

    public function getGenderText(){
        if($this->gender == 0){
            return '女';
        }else{
            return '男';
        }
    }
}
